package _interface

import (
	"gitee.com/leeqiang250/go-common/network"
	_struct "gitee.com/leeqiang250/go-common/struct"
	"gitee.com/leeqiang250/go-common/util"
	"net/http"
)

func init() {
	AddHttp(&V1Test{})
}

type V1Test struct {
	Req
}

func (this *V1Test) Path() string {
	return "/v1/test"
}

func (this *V1Test) Method() []network.HttpMethod {
	return []network.HttpMethod{network.HttpMethodGet, network.HttpMethodPost}
}

func (this *V1Test) Execute(request *http.Request, response http.ResponseWriter, dto util.DTO) util.Result {
	return _struct.ResV1SuccessV1()
}
